package cn.edu.scau.cmi.shishuai.exercise6;

class 类人猿{
	void crySpeak(String s) {
		System.out.println(s);
	}
}

class People2 extends 类人猿{
	void computer(int a, int b) {
		int c = a * b;
		System.out.println(c);
	}
	void crySpeak(String s) {
		System.out.println("***" + s + "***");
	}
}

public class Example6_7 {

	public static void main(String[] args) {
		类人猿 monkey = new People2();
		monkey.crySpeak("I love this game");
		People2 people = (People2)monkey;
		people.computer(10, 10);

	}

}
